<?php

    require_once 'model/global.inc.php'; 
    if(isset($_SESSION['logged_in']))
    {
        $user = unserialize($_SESSION['user']);
        $memid = $user->memid;
    }
    $users = new UserTools();
    $row = $users->getbidhistory($memid);
?>
    <div class="biddingHistory">
        <table class="broom_table" cellspacing="0" border="1" width="95%">
            <tbody>
                <tr>
                    <td colspan="2" style="text-align: center;" class="titleAdmin">
                        Bidding History
                    </td>
                </tr>
                <tr style="text-align: center;font-weight: bold;">
                    <td>
                        Product name
                    </td>
                    <td>
                        Bid price
                    </td>
                </tr>
                <?php foreach($row as $row_pro)
                {?>                
                    <tr>
                        <td>
                            <?php echo $row_pro['pro_name']; ?>
                        </td>
                        <td>
                            <?php echo $row_pro['bid_price']; ?>
                        </td>
                    </tr>
                           
                <?php  } ?>
            </tbody>
        </table>
    </div>